Carbon


FSDeleteObject

Header: Files.h Carbon status: Supported

Deletes a file or an empty directory.

OSErr FSDeleteObject (
    const FSRef *ref
);
Parameter descriptions
ref

The file or directory to be deleted. If the object to be deleted is a directory, it must be empty (it must contain no files or folders).

function result

A result code.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 9, or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)